package com.pyb.common.sms.biz.model;

import java.io.Serializable;

public class SmsMultiSenderResultDetail implements Serializable {
	public int result;
	public String errmsg = "";
	public String phoneNumber = "";
	public String nationcode = "";
	public String sid = "";
	public int fee;

	public SmsMultiSenderResultDetail() {
	}

	public SmsMultiSenderResultDetail(int result, String errmsg, String phoneNumber, String nationcode, String sid, int fee) {
		this.result = result;
		this.errmsg = errmsg;
		this.phoneNumber = phoneNumber;
		this.nationcode = nationcode;
		this.sid = sid;
		this.fee = fee;
	}

	public int getResult() {
		return result;
	}

	public void setResult(int result) {
		this.result = result;
	}

	public String getErrmsg() {
		return errmsg;
	}

	public void setErrmsg(String errmsg) {
		this.errmsg = errmsg;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public String getNationcode() {
		return nationcode;
	}

	public void setNationcode(String nationcode) {
		this.nationcode = nationcode;
	}

	public String getSid() {
		return sid;
	}

	public void setSid(String sid) {
		this.sid = sid;
	}

	public int getFee() {
		return fee;
	}

	public void setFee(int fee) {
		this.fee = fee;
	}

	public String toString() {
		if (0 == result) {
			return String.format(
					"Detail result %d\nerrmsg %s\nphoneNumber %s\nnationcode %s\nsid %s\nfee %d",
					result, errmsg, phoneNumber, nationcode, sid, fee);
		} else {
			return String.format(
					"result %d\nerrmsg %s\nphoneNumber %s\nnationcode %s",
					result, errmsg, phoneNumber, nationcode);
		}
	}
}
